<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

	class Logout extends Admin_Controller{
		public function __construct(){
			parent::__construct();
		}

		public function index(){
			$userdata = array(
				'username' => '',
				'is_user_logged' => ''
				);
			$this->session->unset_userdata($userdata);
			redirect('admin/login','refresh');
		}
	}
?>